From 5fefc7a71432c05e30ff2954ef8157907efd27c3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 5 Aug 2016 01:08:44 -0400 Subject: [PATCH] headerbar: Fix size allocation The GtkHeaderBar gadget implementation was subtly broken: it called gtk_widget_set_allocation both in gtk_header_bar_size_allocate (with the actual allocation) and in gtk_header_bar_allocate_contents (with the content allocation of the main gadget). Dropping the second call fixes the render node conversion for GtkHeaderBar. --- gtk/gtkheaderbar.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 8182bec972..51546754ee 100644 --- a/gtk/gtkheaderbar.c +++ b/gtk/gtkheaderbar.c @@ -1012,8 +1012,6 @@ gtk_header_bar_allocate_contents (GtkCssGadget *gadget, gint child_size; GtkTextDirection direction; - gtk_widget_set_allocation (widget, allocation); - direction = gtk_widget_get_direction (widget); nvis_children = count_visible_children (bar); sizes = g_newa (GtkRequestedSize, nvis_children); -- 2.30.2